package com.fand.stater.model;

import java.util.Collection;

import lombok.Getter;
import lombok.Setter;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

/**
 * Author: zhangjiabin
 * Email: javaboyok@163.com
 * CreateDate: 2021/6/17
 * Version: 1.0
 */
@Setter
@Getter
public class SysUserDetailDTO extends User {

    private Long id;
    private String realName;


    public SysUserDetailDTO(Long id,String realName,String username, String password, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);
        this.id = id;
        this.realName = realName;
    }
}
